<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>绘制图片和文字</title>
    <style>
      body {
        margin: 0;
        padding: 0;
        background-image: url(../images/grid.png);
      }
      svg {
        background-color: rgba(255, 0, 0, 0.1);
      }
      /* text {
			fill: green;
		} */
    </style>
  </head>
  <body>
    <svg width="300" height="300" xmlns="http://www.w3.org/2000/svg">
      <!-- 绘制一个文字 -->
      <text x="50" y="50" font-size="30">
        iPhone14
        <tspan x="100" y="50" fill="yellow" alignment-baseline="middle">￥100</tspan>
      </text>
    </svg>
  </body>
</html>
